package com.heima.schedule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.schedule.dtos.Task;
import com.heima.model.schedule.pojos.Taskinfo;

/**
 * @author JianKang
 * @create 2023-10-23 22:17
 */
public interface TaskService {
    Long addTask(Task task);

    boolean cancelTask(Long taskId);

    Task poll(int type, int priority);
}
